/*---------------玩家------------*/
export interface IPlayer {
  id: number
  nickname: string
  rid: number
}

export interface IApiPlayerJoinReq {
  nickname: string
}
export interface IApiPlayerJoinRes {
  player: IPlayer
}

export interface IApiPlayerListReq {}

export interface IApiPlayerListRes {
  list: IPlayer[]
}

/*---------------房间------------*/
export interface IRoom {
  id: number
  players: IPlayer[]
}
export interface IApiRoomCreatReq {}
export interface IApiRoomCreatRes {
  room: IRoom
}
export interface IApiRoomListReq {}
export interface IApiRoomListRes {
  list: IRoom[]
}

export interface IApiRoomJoinReq {
  rid: number
}
export interface IApiRoomJoinRes {
  room: IRoom
}
export interface IApiRoomLeaveReq {}
export interface IApiRoomLeaveRes {}

/*----------------游戏-------------*/
export interface IApiGameStartReq {}
export interface IApiGameStartRes {}

export interface IApiGameEndReq {}
export interface IApiGameEndRes {}
